package first.demo;

import java.util.Scanner;

public class tongji {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入一段文字:");
        String data = input.nextLine();
        System.out.println("单词个数:"+data.length());
        System.out.println("输出所有单词:"+data);
    }
}
